package com.dianban.service.impl;


import com.dianban.dao.UserGoldBeanLogDao;
import com.dianban.entity.UserGoldBeanLog;
import com.dianban.service.UserGoldBeanLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 用户业务实现层
 *
 */
@Service
@Transactional(readOnly = true)
public class UserGoldBeanLogServiceImpl implements UserGoldBeanLogService {

    @Autowired
    private UserGoldBeanLogDao userGoldBeanLogDao;

    @Override
    @Transactional(readOnly = false)
    public int insert(UserGoldBeanLog userGoldBeanLog) {
        userGoldBeanLog.setCreatetime(System.currentTimeMillis()/1000);
        return userGoldBeanLogDao.insert(userGoldBeanLog);
    }


}
